package com.xunwulian.base.constant;


import com.xunwulian.base.util.EnumType;


/**
 * 开关机状态 0-关机、1-开机
 */
public enum OnAndOffStatus implements EnumType<OnAndOffStatus, Integer, String> {

    OFFLINE(0, "关机"),
    ONLINE(1, "开机"),
    UNKNOWN(9, "未知");

    public int type;
    public String desc;

    OnAndOffStatus(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    @Override
    public Integer getType() {
        return this.type;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }


}
